<header class="journal-header-center nosecond">
	    
    <div id="header" class="journal-header row z-2">
    
        <div id="toprow">
            <div id="welcome">
            <?php if (!$logged) { ?>
            <a class="notlogged" title="Вход в сайта" href="/index.php?route=account/login"></a>
            <?php } else { ?>
            <a class="logged" title="Моят профил" href="/index.php?route=account/account"></a>
            <?php } ?>
            </div>
            
            <div class="journal-search xs-100">
                <div id="search">
                    <div class="button-search"><i></i></div>
                    <?php if (isset($filter_name)): /* v1541 compatibility */ ?>
                    <?php if ($filter_name) { ?>
                    <input type="text" name="filter_name" value="<?php echo $filter_name; ?>" autocomplete="off" />
                    <?php } else { ?>
                    <input type="text" name="filter_name" value="<?php echo $text_search; ?>" autocomplete="off" onclick="this.value = '';" onkeydown="this.style.color = '#000000';" />
                    <?php } ?>
                    <?php else: ?>
                    <input type="text" name="search" placeholder="<?php echo $this->journal2->settings->get('search_placeholder_text'); ?>" value="<?php echo $search; ?>" autocomplete="off" />
                    <?php endif; /* end v1541 compatibility */ ?>
                </div>
            </div>
                
			<?php if ($logo) { ?>
            <div id="logo">
                <a href="<?php echo str_replace($home, 'index.php?route=common/home', ''); ?>">
                    <img src="<?php echo $logo;?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" />
                </a>
            </div>
            <?php } ?>
            
            <div id="contacts">
            	<a title="Пишете ни" href="/index.php?route=information/contact"></a>
            </div>
    
            <div class="journal-cart row xs-100">
                <?php echo $cart; ?>
            </div>
    
        </div>
        
        <div class="journal-menu j-min xs-100 sm-100 md-100 lg-100 xl-100">
            <?php echo $this->journal2->settings->get('config_mega_menu'); ?>
        </div>
        
    </div>
</header>